import time
from time import sleep

from selenium import webdriver
from selenium.webdriver import Keys
from selenium.webdriver.common.by import By

####实例化浏览器
driver = webdriver.Edge()
#登录页
driver.get("https://mp.toutiao.com/auth/page/login")

# 等待扫码登录完成并跳转到首页
driver.implicitly_wait(1000)
print("登录成功")

# 获取浏览器session
# 获取浏览器Cookies
cookies = driver.get_cookies()
# 打印Cookies
for cookie in cookies:
    print(cookie)


